package com.lh.project.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 菜品表
 * @TableName food
 */
@TableName(value ="food")
@Data
public class Food implements Serializable {
    /**
     * 主键，自增，不为空
     */
    @TableId(value = "food_id", type = IdType.AUTO)
//    @TableId(value = "id", type = IdType.AUTO)
    private Long foodId;
    @TableField(value = "false")
    private String foodIdStr;

    /**
     * 隶属于那个档口,不为空
     */
    @TableField(value = "food_muzzle_id")
    private Long foodMuzzleId;

    /**
     * 食物地址
     */
    @TableField(value = "foodAddress")
    private String foodAddress;

    /**
     * 菜品名称，不为空
     */
    @TableField(value = "food_name")
    private String foodName;

    /**
     * 菜品价格，不为空
     */
    @TableField(value = "food_price")
    private Long foodPrice;

    /**
     * 菜品照片，不为空
     */
    @TableField(value = "food_img")
    private String foodImg;

    @TableField(value = "sell_count")
    private Integer sellCount;

    /**
     * 该菜品的售出数量，可为空
     */
    @TableField(value = "food_count")
    private Integer foodCount;

    /**
     * 菜品的描述
     */
    @TableField(value = "food_description")
    private String foodDescription;

    /**
     * 菜品的原材料信息
     */
    @TableField(value = "food_material")
    private String foodMaterial;

    /**
     * 菜品收藏量，默认是0，不为空
     */
    @TableField(value = "food_follow")
    private Integer foodFollow;

    /**
     * 菜品的评分，取值范围为1-10
     */
    @TableField(value = "food_score")
    private Integer foodScore;

    /**
     * 也就是菜品分类表中的id
     */
    @TableField(value = "food_sort")
    private Integer foodSort;

    /**
     * 有的菜品今天或者以后都不出了；0表示有效，1表示无效，默认是0
     */
    @TableField(value = "food_is_delete")
    private Integer foodIsDelete;

    /**
     * 创建时间，默认是当前时间
     */
    @TableField(value = "create_time")
    private Date createTime;


    /**
     * 更新时间，默认是当前时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 菜品的口味信息,可为空
     */
    @TableField(value = "food_taste")
    private String foodTaste;

    /**
     * 是否为推荐菜品，0表示是，1表示不是，默认是1
     */
    @TableField(value = "food_recommend")
    private Integer foodRecommend;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}